<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<link href="themes01/default/clientPublic.css" rel="stylesheet" type="text/css"/>
<link href="themes01/default/codeMgr.css" rel="stylesheet" type="text/css"/>
<link href="themes01/default/tabSwitch.css" rel="stylesheet" type="text/css"/>
<link rel="stylesheet" type="text/css" href="themes01/default/pstyle.css">
<script type="text/javascript" src="javascripts01/jquery.js"></script>
<script type="text/javascript" src="javascripts01/common.js"></script>
<script language="javascript" type="text/javascript" src="DatePicker/WdatePicker.js"></script>
<title>Office 515158 2011 OA办公系统</title>
 
</head>
<body>
<div id="Holder">
<div id="MainPage">

 
 
<div id="Subnav">
 
<ul>
<?php
//定义标题
$nums=80;
global $db;
$query = $db->query("SELECT * FROM ".DB_TABLEPRE."menu where fatherid='11' and menutype='0' ORDER BY menunum Asc");
	while ($row = $db->fetch_array($query)) {
?>
<li><a href="<?=$row[menuurl]?>"  <? if($nums==$row[menuid]){?> id="Subnavb"<? }?>><?=$row[menuname]?></a></li>
<?php
	}
?>


</ul>
</div>
<script Language="JavaScript"> 
function CheckForm()
{
   if(document.save.user.value=="")
   { alert("单位员工不能为空！");
     document.save.user.focus();
     return (false);
   }
   if(document.save.number.value=="")
   { alert("合同编号不能为空！");
     document.save.number.focus();
     return (false);
   }
   if(document.save.signdate.value=="")
   { alert("合同签订日期不能为空！");
     document.save.signdate.focus();
     return (false);
   }
   if(document.save.testdate.value=="")
   { alert("试用生效日期不能为空！");
     document.save.testdate.focus();
     return (false);
   }
   if(document.save.testday.value=="")
   { alert("试用天数不能为空！");
     document.save.testday.focus();
     return (false);
   }
   if(document.save.testenddate.value=="")
   { alert("试用到期日期不能为空！");
     document.save.testenddate.focus();
     return (false);
   }
   if(document.save.signnum.value=="")
   { alert("签约次数不能为空！");
     document.save.signnum.focus();
     return (false);
   }
   if(document.save.signenddate.value=="")
   { alert("合同到期日期不能为空！");
     document.save.signenddate.focus();
     return (false);
   }
   
   return true;
}
function sendForm()
{
   if(CheckForm())
      document.save.submit();
}
</script>
<form name="save" method="post" action="?ac=add&do=save&fileurl=humancontract">
	<input type="hidden" name="savetype" value="add" />
<table class="TableTop" width="90%">
   <tr>
      <td class="left"></td>
      <td class="center">新增人事合同</td>
      <td class="right"></td>
   </tr>
</table>
 <table class="TableBlock no-top-border" width="90%">
    <tr>
      <td nowrap class="TableContent" width="15%"> 单位员工：<? get_user_add_help()?></td>
      <td class="TableData">
	  <?php
	  get_oa_member_public(1,"user","","+选择",70,20)
	  ?>
	  </td>
    </tr>
	<tr>
      <td nowrap class="TableContent" width="15%"> 合同编号：<? get_user_add_help()?></td>
      <td class="TableData">
      <input type="text" name="number" class="BigInput" size="40" value="<?=get_date('Y',PHP_TIME).get_date('m',PHP_TIME).get_date('d',PHP_TIME).get_date('H',PHP_TIME).get_date('i',PHP_TIME).get_date('s',PHP_TIME)?>" /></td>
    </tr>
	<tr>
      <td nowrap class="TableContent" width="15%"> 合同类型：</td>
      <td class="TableData">
      <select name="type">
			<option value="0" selected="selected">请选择类型</option>
			<?=get_inc_office_type(0,14)?>
			</select></td>
    </tr>
	<tr>
      <td nowrap class="TableContent" width="15%"> 合同状态：</td>
      <td class="TableData">
      <select name="ckey">
			<option value="0" selected="selected">请选择状态</option>
			<?=get_inc_office_type(0,15)?>
			</select></td>
    </tr>
	<tr>
      <td nowrap class="TableContent" width="15%"> 合同签订日期：<? get_user_add_help()?></td>
      <td class="TableData">
      <input type="text" name="signdate" class="BigInput" style="width:168px;" size="20" value="" onClick="WdatePicker();" /></td>
    </tr>
	<tr>
      <td nowrap class="TableContent" width="15%"> 试用生效日期：<? get_user_add_help()?></td>
      <td class="TableData">
      <input type="text" name="testdate" class="BigInput" size="20" style="width:168px;" value="" onClick="WdatePicker();" /></td>
    </tr>
	<tr>
      <td nowrap class="TableContent" width="15%"> 试用天数：<? get_user_add_help()?></td>
      <td class="TableData">
      <input type="text" name="testday" class="BigInput" size="15" value=""  onKeyUp="value=value.replace(/[^0-9^.]/g,'');"/> 天</td>
    </tr>
	<tr>
      <td nowrap class="TableContent" width="15%"> 试用到期日期：<? get_user_add_help()?></td>
      <td class="TableData">
      <input type="text" name="testenddate" class="BigInput" style="width:168px;" value="" onClick="WdatePicker();" /></td>
    </tr>
	<tr>
      <td nowrap class="TableContent" width="15%"> 签约次数：<? get_user_add_help()?></td>
      <td class="TableData">
      <input type="text" name="signnum" class="BigInput" size="15" value=""  onKeyUp="value=value.replace(/[^0-9^.]/g,'');" /> 次</td>
    </tr>
    <tr>
      <td nowrap class="TableContent"> 合同到期日期：<? get_user_add_help()?></td>
      <td class="TableData">
<input type="text" name="signenddate" class="BigInput" style="width:168px;"  value="" onClick="WdatePicker();"/>
      </td>
    </tr>
	<tr>
      <td nowrap class="TableContent"> 附件文档：</td>
      <td class="TableData">

 <input type="text" name="appendix" class="BigInput" size="40" value="" /><a href="#" onClick="window.open ('admin.php?ac=uploadadd&fileurl=public&name=appendix', 'newwindow', 'height=200, width=400, top=0, left=0, toolbar=no, menubar=no, scrollbars=yes, resizable=no,location=no, status=no')">+附件上传</a>
      </td>
    </tr>
</table>
<table  width="90%" style="border-left:#CCCCCC solid 1px;border-right:#CCCCCC solid 1px;border-bottom:#CCCCCC solid 1px;">
    <tr>
      <td width="15%"  style="border-right:#CCCCCC solid 1px;">&nbsp;备注：</td>
      <td width="85%" style="padding-top:10px; padding-bottom:10px; padding-left:3px;"><script charset="utf-8" src="eweb/kindeditor.js"></script>
<script>
        KE.show({
                id : 'content'
        });
</script>
		<textarea name="content" cols="70" rows="12" class="input" style="width:600px;height:300px;"></textarea>	 
      </td>
    </tr>
</table>
  <table class="TableBlock no-top-border" width="90%"> 
 
    
    <tr align="center" class="TableControl">
      <td colspan="2" nowrap height="35">

		<input type="button" name="Submit" value="保存信息" class="BigButton" onclick="sendForm();"> 
        
      </td>
    </tr>
  </table>
</form>
</div>
</div>
 
 
</body>
</html>
